/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, softwarevirtual
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SWANLINK_FINANCE_MAKECARD_INTERFACES_INNERKITS_NATIVE_INCLUDE_IMAKECARD_SRV_H
#define SWANLINK_FINANCE_MAKECARD_INTERFACES_INNERKITS_NATIVE_INCLUDE_IMAKECARD_SRV_H

#include <string>
#include "iremote_broker.h"
#include "iremote_object.h"
#include "makecard_def.h"
#include "icashdevice_srv.h"
namespace SwanLink
{
namespace Finance
{
class IMakecardSrv : public ICashDeviceSrv {
 public:
    enum {
        MAKECARD_SETCONFIG = CASHDEBICE_OTHER,
        MAKECARD_SETSTANDBYPARAM,
        MAKECARD_PRINTCARD,
        MAKECARD_GETDEVICEINFO,
        MAKECARD_GETERRORSTRING,
        MAKECARD_MOVECARD,
        MAKECARD_FLIPCARD
    };

    /**
     * 设置打印机配置
     */
    virtual int SetConfig(int handle, int configType, int configValue) = 0;
    /**
     * 设置standby参数
     */
    virtual int SetStandbyParam(int handle, int dir, int pos, int standbyTime) = 0;
    /**
     * 打印卡片
     */
    virtual int PrintCard(int handle, BmpInfo cardBmpInfo) = 0;
    /**
     * 获取打印机信息
     */
    virtual int GetDeviceInfo(int handle, int infoType, char *infoValue) = 0;
    /**
     * 获取错误信息
     */
    virtual int GetErrorString(int handle, int status, char *statusDesc) = 0;
    /**
     * 传动卡片到指定位置
     */
    virtual int MoveCard(int handle, int postionMoveTo) = 0;
    /**
     * 翻转卡片
     */
    virtual int FlipCard(int handle) = 0;

 public:
    DECLARE_INTERFACE_DESCRIPTOR(u"ohos.finance.IMakecardSrv");
};
}  // namespace Finance
}  // namespace SwanLink
#endif  // SWANLINK_FINANCE_MAKECARD_INTERFACES_INNERKITS_NATIVE_INCLUDE_IMAKECARD_SRV_H
